const log4js = require("log4js")
log4js.configure({
  appenders: {
    file: {type: "file", filename: "cheese.log"},
    console: {
      type: "console", layout: {
        type: "coloured",
        pattern: "[%d]  [%[%5.5p%]] - %m"
      }
    }
  },
  categories: {default: {appenders: ["console"], level: "trace"}}
})


export class LogFactory {
  static getLogger = (cate) => {
    return log4js.getLogger(cate)
  }

}
